﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ServerSocket.com.core
{

    public class Group<T>
    {

        private List<T> users;

        public Group()
        {
            users = new List<T>();
        }

        public bool addUser(T client)
        {
            if (users.Contains(client) == true)
            {
                return false;
            }
            users.Add(client);
            return true;
        }

        public T removeUser(T client)
        {
            if (users.Contains(client) == false)
            {
                return default(T);
            }

            users.Add(client);
            return client;
        }

    }
}
